#!/bin/sh
echo "  Remove Steam, including the user \"steam\" and all files"
printf "%s" "  in the directory /home/steam? y/n: "
read LINE
if [ $LINE = "y" ]; then ezgmodds remove; fi
printf "\n%s" "  Uninstalling..."
sudo rm -f /usr/local/bin/ezgmodds
printf "%s" "."
echo "#!/bin/bash
echo \"\`sudo cat /etc/sudoers | grep -Fv ezgmodds\`\" >/etc/sudoers
" >/tmp/ezgmodds.sudoersmod
printf "%s" "."
sudo chmod a+rx /tmp/ezgmodds.sudoersmod
printf "%s" "."
sudo /tmp/ezgmodds.sudoersmod
printf "%s\n\n" "  Done."
exit 0
